import 'package:flutter/material.dart';
import 'package:flutter_comm_base_framework/core/utils/time_utils.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

class HeaderAndFooter{
  static ClassicalHeader getHeader(){
    return ClassicalHeader(
      refreshText: "下拉刷新",
      refreshReadyText:  "松开后开始刷新",
      refreshingText:  "正在刷新...",
      refreshedText: "刷新完成",
      infoText: TimeUtils.getCurrentTime(),
      bgColor: Colors.transparent,
      textColor: Colors.black87
    );
  }

  static ClassicalFooter getFooter(){
    return ClassicalFooter(
      loadText: "上拉加载更多",
      loadReadyText: "松开后开始加载",
      loadingText: "正在加载...",
      loadedText: "加载完成",
      noMoreText: "没有更多内容了",
      infoText: TimeUtils.getCurrentTime(),
      bgColor: Colors.transparent,
      textColor: Colors.black87
    );
  }
}